    <script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
    <script src="./hlz_rsa.js"></script>
    <script>
        var public_key,
            encrypt,
            After_enode,
            post_data='云天河';//post的某条数据
        encrypt = new JSEncrypt();
        After_enode = rsa_encode( post_data );//传入准备post的数据
         document.write("加密前的数据:<input type='text' value=" + post_data+'><br><br>');
         document.write('加密后的数据:<textarea rows="4" cols="50">' + After_enode + "</textarea><br><br>");
         $.ajax({
            url:'./rsa.php',
            data:{"name":After_enode},
            dataType:'html',
            type:'post',
            success:function(html){
                $('body').append(html);
            }
         });
    </script>
